package com.ks.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author：Administrator
 * @Date：2022/3/1/0001 21:19
 * @Versiion：1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CommonResult<T>{

    private int code;
    private String msg;
    private T data;

    public CommonResult(Integer code,String msg){
        this(code,msg,null);
    }
}
